-- GENERATED SPELL FOR [Gorgannon] --


function spell0_17300(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17300', 2315, 1)
end

function spell1_17300(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17300', 3000, 1)
end

function Sorts_17300(pUnit, Event)
local choix_sorts_17300 = math.random(0, 1)
if choix_sorts_17300 == 0 then
pUnit:RegisterEvent('spell0_17300', 1, 1)
end
if choix_sorts_17300 == 1 then
pUnit:RegisterEvent('spell1_17300', 1, 1)
end
end

function mob17300_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17300', math.random(1500, 3000), 1)
end

function mob17300_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17300_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17300_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17300, 1, 'mob17300_Action')
RegisterUnitEvent(17300, 2, 'mob17300_Leave')
RegisterUnitEvent(17300, 3, 'mob17300_Kill')
RegisterUnitEvent(17300, 4, 'mob17300_Die')
